extern void InitRam(void);
extern void InitTMR0 (void);
extern void InitTMR1 (void);
extern void TMR1Preload (unsigned int);
extern unsigned char ButtonRead(void);
extern void ReadPreset(unsigned char);
extern void StorePreset(unsigned char);
extern unsigned char* ShowLTime(unsigned int seconds,unsigned char* tbuffer); // 00:00:00
extern unsigned char* ShowSTime(unsigned int seconds,unsigned char* tbuffer); // 000:00
extern unsigned char* ShowCurrent( unsigned char Current, unsigned char* tbuffer); // 000.0
extern unsigned char time[9];
extern void Critical_stop(unsigned char*);
#define ClearWDT() asm("clearwdt")


#ifdef TESTER
extern bit flag_red_lamp_on;
extern bit flag_green_lamp_on;
extern bit flag_red_lamp_blink;
extern bit flag_green_lamp_blink;
extern bit flag_red_lamp_current_state;
extern bit flag_green_lamp_current_state;

extern void ProcessLamps(void);


#define LAMP_BLINK_PERIOD 400
#define InitLamps()  TRISC&=0b11001111
#endif
